package cn.spiral.user.dao;

import java.util.List;

import cn.spiral.core.dao.BaseDao;
import cn.spiral.user.entity.User;
import cn.spiral.user.entity.UserRole;

public interface UserDao extends BaseDao<User>{

	//根据id和账号查询
	List<User> findUserByAccountAndId(String id, String account);

	void saveUserRole(UserRole userRole);

	void deleteUserRoleByUserId(String id);

	List<UserRole> getUserRolesByUserId(String id);

	List<User> findUserByAccountAndPass(String account, String password);

	
}
